<?php

namespace JsonLowCode\UI;

use JsonLowCode\Schema;

/**
 * 图片组件 ImageGroup
 * @method static ImageGroup make(mixed $children = null) ImageGroup组件
 */
class ImageGroup extends Schema
{
    protected string $componentName = "NImageGroup";

    public function __construct(mixed $children = null)
    {
        parent::__construct();
        $children && $this->children($children);
    }


    /**
     * 图片放大后是否展示底部工具栏
     * @param string|bool $bool,
     * @return $this
     */
    public function showToolbar(string|bool $bool = true): static
    {
        return $this->prop('showToolbar', $bool);
    }

    /**
     * 是否展示工具栏的提示
     * @param string|bool $bool,
     * @return $this
     */
    public function showToolbarTooltip(string|bool $bool = true): static
    {
        return $this->prop('showToolbarTooltip', $bool);
    }

}
